﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zocono.WCS.Infrastructure.ApllicationDto.DtoWcsManage
{

    #region Query
    public class QueryDispatchEquipmentInfoDto : PageResultDto
    {
        public string EquipmentName { get; set; }
        public string EquipmentCode { get; set; }
        public long? EquipmentTypeID { get; set; }
    }

    public class QueryEquipmentTypeInfoDto
    {
        public bool? IsDispatch { get; set; }
        public string TypeCode { get; set; }
        public string TypeName { get; set; }
    }
    #endregion

    /// <summary>
    /// 调度设备dto
    /// </summary>
    public class DispatchEquipmentInfoDto
    {
        public long ID { get; set; }
        public string Js_Id { get { return ID.ToString(); } }
        /// <summary>
        /// 区域号，X+取值范围(0-F)
        /// </summary>
        public string AreaCode { get; set; }
        public string EquipmentCode { get; set; }
        public string EquipmentName { get; set; }
        public long EquipmentTypeID { get; set; }
        /// <summary>
        /// 工位数量，默认1，双工位堆垛机为2
        /// </summary>
        public int StationCount { get; set; }
        [Required(AllowEmptyStrings = true)]
        public string EquipmentTypeName { get; set; }
    }

    /// <summary>
    /// 设备类型
    /// </summary>
    public class EquipmentTypeInfoDto
    {
        public long ID { get; set; }
        public string Js_Id { get { return ID.ToString(); } }
        public bool IsDispatch { get; set; }
        public string TypeCode { get; set; }
        public string TypeName { get; set; }
    }
}
